package com.ruoyi.ZdElectricityUsage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用电信息对象 zd_electricity_usage
 * 
 * @author 智电未来
 * @date 2024-07-09
 */
public class ZdElectricityUsage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderNumber;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long id;

    /** 使用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usageDate;

    /** 消耗电力（以kWh为单位） */
    @Excel(name = "消耗电力", readConverterExp = "以=kWh为单位")
    private BigDecimal electricityConsumed;

    public void setOrderNumber(Long orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public Long getOrderNumber() 
    {
        return orderNumber;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsageDate(Date usageDate) 
    {
        this.usageDate = usageDate;
    }

    public Date getUsageDate() 
    {
        return usageDate;
    }
    public void setElectricityConsumed(BigDecimal electricityConsumed) 
    {
        this.electricityConsumed = electricityConsumed;
    }

    public BigDecimal getElectricityConsumed() 
    {
        return electricityConsumed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderNumber", getOrderNumber())
            .append("id", getId())
            .append("usageDate", getUsageDate())
            .append("electricityConsumed", getElectricityConsumed())
            .toString();
    }
}
